package com.example.pharmacy.mapper;

import com.example.pharmacy.model.Category;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: asus
 * Date: 2024-12-21
 * Time: 19:47
 */
@Mapper
public interface CategoryInfoMapper {
    @Select("select * from drug_classification where is_deleted = 0")
    List<Category> selectAllCategory();
    @Insert("insert into drug_classification (class_name) values(#{className})")
    Integer insertCategory(Category category);
    Integer updateCategory(Category category);
}
